CS_FILES =  EventQueue.cs Functor.cs Global.cs Song.cs GAudioscrobbler.cs AudioscrobblerPlugin.cs

AudioscrobblerPlugin.dll: $(CS_FILES) Audioscrobbler.glade
	gmcs -target:library -out:AudioscrobblerPlugin.dll -r:Mono.Security.dll -r:System.Web.dll -pkg:gconf-sharp-2.0 -pkg:glade-sharp-2.0 -pkg:muine-plugin -resource:Audioscrobbler.glade $(CS_FILES)

install: AudioscrobblerPlugin.dll
	mkdir -p ~/.gnome2/muine/plugins
	mv AudioscrobblerPlugin.dll ~/.gnome2/muine/plugins

all: AudioscrobblerPlugin.dll
